package com.lml.servicetest

import android.app.IntentService
import android.content.Intent
import android.util.Log


/**
 * IntentService已经被deprecated
 */
class MyIntentService : IntentService("MyIntentService") {


    private val TAG: String = "MyIntentService"

    override fun onHandleIntent(intent: Intent?) {
        Log.d(TAG, "Thread id is ${Thread.currentThread().name}")
    }

    override fun onDestroy() {
        super.onDestroy()
        Log.d(TAG, "onDestroy: executed")
    }
}